<%- include('../../common/header.html',{css:'common'}) %>
<%- include('../../common/script-validation.html') %>
<%- include('../../common/layer.html') %>
<%- include('../../common/script-ajax-file-upload.html') %>
<%- include('../../common/script-jcrop.html') %>
<%- include('../../common/script-upload.html') %>
<style>
    .toolbar > .pull-right{
        display: block;
        float: none;
        padding-top: 5px;
        text-align: right;
        position: relative;
        right: auto;
        left: auto;
    }
    .dropdown-toggle.btn{
        border: 1px solid #cdd4db !important;
    }
    .pull-left .input-group-btn{
        margin-right: 5px;

    }
    .bootstrap-select{
        width: 150px !important;
    }
</style>

<script id="list-file" type="application/xhtml+xml">
    <div class="form-group" >
        <label class="col-xs-2 control-label" style="">头图管理</label>
        <div class="col-xs-10">
    <table class="table table-bordered" style="    width: 600px">
        <tr>
            <th>序号</th>
            <th>头图链接</th>
            <th>操作</th>
        </tr>
        <$
        list.map(function(item){ $>
        <tr>
            <td>序号</td>
            <td><a target="_blank" href="<$=item.url$>">预览</a></td>
            <td><a class="m-img" data-id="<$=item.id$>" href="javascript:void(0)">删除</a></td>
        </tr>
        <$})$>
    </table></div>
    </div>
</script>
<script id="lading-bill-actual-template" type="application/xhtml+xml">
    <form class='form-horizontal btn-update-actual-lading-bill'>
        <div class="form-group">
            <label class="col-sm-3 control-label">增加可售数量</label>
            <div class="col-sm-6">
                <input class="form-control" placeholder="增加可售数量" name="actual" type="number"
                       data-rule-required="true" min="0">
            </div>
            <div class="col-sm-3 error-container"></div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-3 col-sm-9">
                <button type="submit" data-loading-text="提交中..."
                        class="btn btn-danger btn-update-actual-lading-bill">提交
                </button>
            </div>
        </div>
    </form>

</script>
<script type="application/xhtml+xml" id="form-template">
    <form id="registrationForm" class="form-horizontal">
        <div class="form-group">
            <label class="col-xs-3 control-label">商品名称</label>
            <div class="col-xs-7">
                <input type="hidden" name="id" value="<$= typeof id !== 'undefined' ? id : '' $>"/>
                <input type="text" class="form-control" name="name" placeholder="商品名称"
                       value="<$= name == '' ? '' : name $>"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">商品简介</label>
            <div class="col-xs-7">
                <textarea class="form-control" name="desc1" placeholder="商品简介"
                          ><$= typeof desc1 !='undefined'&&desc1 != '' ? desc1 : '' $></textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">Shopiy商品SKU</label>
            <div class="col-xs-7">
                <input class="form-control" name="goodsId" placeholder="Shopiy SKU(同步库存用)"
                       value="<$= typeof goodsId !='undefined'&&goodsId == '' ? goodsId : '' $>"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">原价</label>
            <div class="col-xs-7">
                <input type="text" class="form-control" placeholder="现价" name="price"
                       value="<$= typeof price !== 'undefined' ? price : '' $>"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">现价</label>
            <div class="col-xs-7">
                <input type="text" class="form-control" placeholder="现价" name="actualPrice"
                       value="<$= typeof actualPrice !== 'undefined' ? actualPrice : '' $>"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">拼团价</label>
            <div class="col-xs-7">
                <input type="text" class="form-control" placeholder="拼团价" name="ptPrice"
                       value="<$= typeof ptPrice !== 'undefined' ? ptPrice : '' $>"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">适用性别</label>
            <div class="col-xs-7">
                <div class="tag-group tag-checkable" data-toggle='tag'>
                    <label class='tag <$= ((typeof applyGender !== 'undefined') ? (applyGender ==1?'active':'') : '')$>'>男性 <input
                        <$= ((typeof applyGender !== 'undefined') ? (applyGender ==1?'checked':'') : '')$>
                            type='radio' name='applyGender' value='1'/></label>
                    <label class="tag  <$= ((typeof applyGender !== 'undefined') ? (applyGender ==0?'active':'') : '')$>">女性 <input
                        <$= ((typeof applyGender !== 'undefined') ? (applyGender ==0?'checked':'') : '')$>
                        type='radio' name='applyGender' value='0'/></label>
                    <label class='tag  <$= ((typeof applyGender !== 'undefined') ? (applyGender ==2?'active':'') : '')$>'>中性 <input
                        <$= ((typeof applyGender !== 'undefined') ? (applyGender ==2?'checked':'') : '')$>
                            type='radio' name='applyGender' value='2'/></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">适用年龄</label>
            <div class="col-xs-7">
                <select
                        class="form-control" name="applyAge" placeholder=""
                        multiple
                        data-size="5"
                        />
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">颜色</label>
            <div class="col-xs-7">
                <select class="form-control show-tick color"
                        name="color"
                        placeholder="颜色"
                        multiple
                        data-size="5"
                ></select>
            </div>
        </div>
        <div class="form-group">
        <label class="col-xs-3 control-label">尺码</label>
        <div class="col-xs-7">
            <select class="form-control show-tick "
                    name="sizeId"
                    placeholder="尺码"
                    multiple
                    data-size="5"
            ></select>
        </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">适用季节</label>
            <div class="col-xs-7">
                <select class="form-control season"
                        name="season"
                        placeholder="颜色"
                        multiple="multiple"
                        data-size="5"
                ></select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">类别</label>
            <div class="col-xs-7">
                <select class="form-control" name="categoryId" placeholder="类别"
                        multiple="multiple"></select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">品牌</label>
            <div class="col-xs-7">
                <select type="text" class="form-control" name="brand" placeholder="品牌"
                        data-size="5"
                ></select>
            </div>
        </div>
        <div class="form-group">
        <label class="col-xs-3 control-label">尺码对照表</label>
        <div class="col-xs-7">
            <select type="text" class="form-control" name="sizeTable" placeholder="尺码对照表"
                    data-size="5"
            ></select>
        </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label">折扣活动</label>
            <div class="col-xs-7">
                <select type="text" class="form-control" name="discountId" placeholder="折扣活动"></select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">供货地</label>
            <div class="col-sm-7">
                <select name="deliverPlace" class="form-control deliverPlace" placeholder="供货地">
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">状态</label>
            <div class="col-sm-7">
                <label class="checkbox-inline">
                    <input type="radio"
                    <$= ((typeof status !== 'undefined') ? (status ==1?'checked':'') : '')$>
                    name="status" value="1" /> 上架
                </label>
                <label class="checkbox-inline">
                    <input type="radio"
                    <$= ((typeof status !== 'undefined') ? (status ==1?'':'checked') : '')$>
                    name="status" value="0" /> 下架
                </label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">佣金设置</label>
            <div class="col-sm-7">
                <div class="col-sm-6 row">
                    <input type="text" class="form-control"
                           placeholder="销售员佣金:0.1"
                           data-rule-required='true' value="<$= typeof salesMan !== 'undefined' ? salesMan : '' $>"
                           name='salesMan'/>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注</label>
            <div class="col-sm-7">
                <textarea class="form-control"
                          placeholder="备注"
                          name='remark'></textarea>
            </div>
        </div>

        <div class="form-group">
            <div class="col-xs-9 col-xs-offset-3">
                <button type="submit" class="btn btn-primary" name="submit" value="提 交">提 交</button>
            </div>
        </div>
    </form>
</script>
<title>报价管理-后台管理系统</title>
</head>
<body class="sub-body">
<%- include('../../common/top-nav.html') %>
<%- include('../../common/page-title.html',{navs:[
{label:'销售管理',url:'javascript:void(0)'},
{label:'产品报价',url:'javascript:void(0)'},
]}) %>

<div class="content">
    <div class="panel panel-default" style="padding-top: 10px;">
        <div class="panel-body" style="height: 52px;">
            <div class="toolbar">
                <div class="pull-right">
                </div>
            </div>
        </div>
        <div class="table-responsive">
            <table class="table table-bordered table-hover">
            </table>
        </div>
        <div class="su-pager text-right"></div>
    </div>
</div>
<%- include('../../common/footer.html') %>
</body>
<!-- build:js ../../scripts/product/plant/index.ba.jsx.js  -->
<script type="text/javascript" src="./index.js"></script>
<!-- endbuild -->
</html>